package com.auction.mapper;

import com.auction.common.dao.MyBaseMapper;
import com.auction.entity.TransactionLog;
import com.auction.entity.Wallet;
import org.apache.ibatis.annotations.Mapper;

import java.util.Map;


@Mapper
public interface WalletMapper extends MyBaseMapper<Wallet> {

    /**
     * 更新账户余额
     * @param transactionLog
     * @return
     */
    int updateAmount(TransactionLog transactionLog);

    /**
     * 根据id查找账户信息
     * @param user_id
     * @return
     */
    Map getWalletByUserId(int user_id);
}
